import type { Document } from './documents.types';

export type DocumentEvents = {
  'document.created': { document: Document };
  'document.trashed': { documentId: string; organizationId: string; trashedBy: string }; // Soft deleted by moving to trash
  'document.restored': { documentId: string; organizationId: string; restoredBy: string };
  'document.updated': {
    documentId: string;
    organizationId: string;
    userId?: string;
    changes: {
      name?: string;
      content?: string;
    };
  };
};
